package com.cn.study.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author mjy
 * @date 2021/12/14
 * @description
 */
@Component
@ConfigurationProperties(prefix = "rocketmq.produser")
public class ProducerConfig implements Serializable {

   private String groupName;

   private String deviceTopic;

   private String deviceTag;

   private String webTopic;

   private String webTag;

   private String nameServer;

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDeviceTopic() {
        return deviceTopic;
    }

    public void setDeviceTopic(String deviceTopic) {
        this.deviceTopic = deviceTopic;
    }

    public String getDeviceTag() {
        return deviceTag;
    }

    public void setDeviceTag(String deviceTag) {
        this.deviceTag = deviceTag;
    }

    public String getWebTopic() {
        return webTopic;
    }

    public void setWebTopic(String webTopic) {
        this.webTopic = webTopic;
    }

    public String getWebTag() {
        return webTag;
    }

    public void setWebTag(String webTag) {
        this.webTag = webTag;
    }

    public String getNameServer() {
        return nameServer;
    }

    public void setNameServer(String nameServer) {
        this.nameServer = nameServer;
    }

    @Override
    public String toString() {
        return "ProducerConfig{" +
                "groupName='" + groupName + '\'' +
                ", deviceTopic='" + deviceTopic + '\'' +
                ", deviceTag='" + deviceTag + '\'' +
                ", webTopic='" + webTopic + '\'' +
                ", webTag='" + webTag + '\'' +
                ", nameServer='" + nameServer + '\'' +
                '}';
    }
}
